#ifndef __CURRENT_DETECT_H
#define __CURRENT_DETECT_H

#include "stdio.h"
#include "usart.h"
#include "system.h"
#include "delay.h"
#include "FreeRTOS.h"
#include "task.h"
#include "main.h"
#include "cmsis_os.h"
#include "oled.h"
#include "oled.h"
#include "math.h"
#include "MYI2C.h"
#include "adc.h"
#include "stm32f1xx_hal.h"


#define FILTERING_TIMES 					10			//滑动滤波

void Current_Detect(void);
float get_curr_val(void);
float Mean_Filter_Left(float data);
float Mean_Filter_Right(float data);
int limitFilter(int input, int last);

#endif
